	{$header}
	<tagLib name="html" />
	<div id="main" class="main" >
	<!-- 主体内容  -->
	<div class="content" >
	<!--  功能组区域  -->
	<div class="btn-toolbar">
		<div class="btn-group">
			
		</div>
		<form class="search-form " method='get' action="__URL__">
		<select name="time_type" class="span1"> 
			<option value="1" <eq name="_REQUEST.time_type" value="1">selected</eq> >预收款时间</option> 
			<option value="2" <eq name="_REQUEST.time_type" value="2">selected</eq> >余款时间</option> 
			<option value="3" <eq name="_REQUEST.time_type" value="3">selected</eq> >退款时间</option>
			<option value="4" <eq name="_REQUEST.time_type" value="4">selected</eq> >交货期</option> 
			<option value="5" <eq name="_REQUEST.time_type" value="5">selected</eq> >创建时间</option>  
		</select>
		从<input type="text" class="span2"  name="start_time" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="<notempty name='_REQUEST.start_time'>{$_REQUEST.start_time}</notempty>">
		到<input type="text" class="span2" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="end_time" id="end_time" value="<notempty name='_REQUEST.end_time'>{$_REQUEST.end_time}</notempty>" >
		
		小单{:configList( C('orderDetailStatus'),$_REQUEST['dstatus'],'dstatus','span1' )}
		收款{:configList( C('receiptStatus'),$_REQUEST['dreceipt_status'],'dreceipt_status','span1' )}
		<input type="text" class="search-query" name="customer" <notempty name='_REQUEST.customer'>
		<php>echo 'value="'.urldecode($_REQUEST['customer']).'"'</php>
		<else/>
		placeholder="输入客户名"
	</notempty> >
		<input type="text" class="search-query span4" name="keywords" <notempty name='_REQUEST.keywords'>
		<php>echo 'value="'.urldecode($_REQUEST['keywords']).'"'</php>
		<else/>
		placeholder="按产品，销售单号、货运单号或条码搜索"
	</notempty>	>
	<input type="submit" class="btn btn-primary" value="搜索">
	</form>
</div>
<!-- 功能组区域结束 -->
<php>
    function detail($id){
    echo ('<a href="__APP__/Order_detail/index/order_id/'.$id.'">销售明细</a>');
    }
    function toOd($time){
    echo toDate($time,'Y-m-d');
}
</php>
<!-- 列表显示区域  -->
<div class="list" >
<div id="result" class="result none"></div><html:list id="checkList" pk="did" style="table table-bordered table-striped" name="action" checkbox="true" action="true" datasource="list" show="did:编号|4%:edit,dmano:销售订单号:edit,did|getMsgTip:备注,po:PO号,pid|getPename:英文名,pid|getCas:CAS,customer_info:客户,dshould_pay:应收款金额,dreceipt_status|getConfigVal=receiptstatus:收款状态,dfirst_pay:预收款,dremain_pay:余款,real_pay:已收款金额,currency|getConfigVal=Currency:货币,dstatus|getConfigVal=orderDetailStatus:小单状态,dctime|toDate:创建时间,first_pay_time|toDate:预收款时间,remain_pay_time|toDate:余款时间,back_money_time|toDate:退款时间" actionlist="edit:详情:did,check:复核:did" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<include file="Public:footer"/>
<script type="text/javascript">
function check(id){
    location.href=URL+"/check/id/"+id;
  }
</script>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
